<?php
// +-------------------------------------------------------------------------------
// | DingZone [ A Rapid Development Framework For Dingtalk ]
// +-------------------------------------------------------------------------------
// | CoreListener.php v1.0
// |
// | Copyright (c) 2014-2018 http://www.heimalanshi.com All rights reserved.
// | Author : Jie
// | Date : 2018/11/1
// +-------------------------------------------------------------------------------

namespace app\core\behavior;

use app\core\service\DebugService;

/**
 * 系统监听器
 *
 * @package app\core\behavior
 */
class CoreListener {
    //应用初始化
    public function appInit(&$params) {
        //应用初始化的时候，检查是否需要把debug模式打开
        DebugService::detectDebugMode();
    }

    // 应用开始
    public function appBegin(&$params) {

    }

    // 模块初始化
    public function moduleInit(&$params) {

    }

    // 操作开始执行
    public function actionBegin(&$params) {
    }

    // 视图内容过滤
    public function viewFilter(&$params) {
    }

    // 日志写入
    public function logWrite(&$params) {

    }

    //日志写入完成
    public function logWriteDone(&$params) {

    }

    //响应发送
    public function responseSend(&$params) {

    }

    //输出结束
    public function responseEnd(&$params) {

    }

    // 应用结束
    public function appEnd(&$params) {

    }
}